<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>编辑</title>
		<link rel="stylesheet" type="text/css" href="../../plugins/layui/css/layui.css" />
		<link href="../../kitAdmin/css/app.css" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" type="text/css" href="../../plugins/select2/dist/css/select2.min.css"/>
	</head>

	<body>
		<div class='kit-table'>
			<div style='margin:10px'>
				
		<form class='layui-form' action='' lay-filter='form-edit'>
			<input type='hidden' name='studentId'  data-link='{:studentId}' />
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>openid</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:openid}' id='_openid' name='openid' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>学员英文名
</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:enName}' id='_enName' name='enName' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>Zoom账号</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:zoomId}' id='_zoomId' name='zoomId' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>电话</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:phone}' id='_phone' name='phone' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>负责人id</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:fuzerenId}' id='_fuzerenId' name='fuzerenId' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>负责人</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:fuzeren}' id='_fuzeren' name='fuzeren' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>推荐总奖励（小时）</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:totalAward}' id='_totalAward' name='totalAward' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>已发放奖励（小时）</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:grantedAward}' id='_grantedAward' name='grantedAward' class='layui-input'>
					</div>
				</div>
			</div>
			<div class='layui-form-item'>
				<div class='layui-inline'>
					<label class='layui-form-label'>待发放奖励（小时）</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:remainedAward}' id='_remainedAward' name='remainedAward' class='layui-input'>
					</div>
				</div>
				<div class='layui-inline'>
					<label class='layui-form-label'>推荐成功（次）</label>
					<div class='layui-input-inline'>
						<input type='text' placeholder=''data-link='{:successTimes}' id='_successTimes' name='successTimes' class='layui-input'>
					</div>
				</div>
			</div>
		</form>
			</div>
		</div>
		<script src="../../common/js/jquery.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../static/js/base.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../plugins/jsviews/jsviews.js" type="text/javascript"></script>
		<script src="../../plugins/select2/dist/js/select2.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			var uid = getQueryVariable('studentId');
			jQuery(document).ready(function() {
				bindFormData();
			});
			var callback_save=function(){
				return $('.layui-form').serialize();
			}
			function bindFormData(){
				if(uid){
					$.ajax({
						url:baseUrl+'/recommends/'+uid,
						type:'get',
						success:function(data){
							$.link(true, ".kit-table", data.data);
							$('select').select2().change();
						},
						error:function(){
							parent.layer.alert('系统或网络错误！');
						}
					});
				}
			}
		</script>
	</body>

</html>
